package com.ljq.polymorphism;

/**
 * Description: 动物父类
 * Author: A
 * Date: 2025/2/24
 * Time: 16:04
 */
public class Animal {
    String name = "动物"; // 父类成员变量
    public void eat(){
        System.out.println("动物吃东西");
    }

    void makeSound() {
        System.out.println("动物发出声音");
    }
}
